<?php

      $dbHostname = "localhost";
      $dbUsername = "user1";
      $dbPassword = "testing";
      $dbName     = "samples";      
       
      //  Make connection to database 
      //  If no connection made, display error Message          
      $dblink = MYSQL_CONNECT($dbHostname, $dbUsername, $dbPassword) OR DIE("Error !! Unable to connect to database");       

      // Select database or print error message if unsuccessful */
      mysql_select_db($dbName) or die( "Unable to select database ".$dbName); 

?>